package com.ruoyi.system.domain.zhuangxiumain.orderformMain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 order_cart
 *
 * @author ruoyi
 * @date 2020-12-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OrderCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车ID */
    private Integer cartId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private int customerId;

    /** 商品标签信息 */
    @Excel(name = "商品标签信息")
    private Integer productId;

    /** 加入购物车商品数量 */
    @Excel(name = "加入购物车商品数量")
    private Long productAmount;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 加入购物车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入购物车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedTime;

    /** $column.columnComment */
    @Excel(name = "图片地址")
    private Long productImage;

    /** $column.columnComment */
    @Excel(name = "商品标签id")
    private Long labelId;

    @Excel(name = "商品库存")
    private String labelQuantity;

    @Excel(name = "商品图片链接地址")
    private String picUrl;

    @Excel(name = "商品标签名称")
    private String labelName;

    @Excel(name = "商品价格")
    private double  labelPrice;

    @Excel(name = "用户名")
    private String customerName;


}
